﻿using System.Web.Mvc;

namespace GSLMS.WebAPP.Areas.RiskAudit
{
    public class RiskAuditAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "RiskAudit";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
              "RiskAudit_Audit",
              "RiskAudit/Audit/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
           
            context.MapRoute(
            "RiskAudit_Director",
            "RiskAudit/Director/{controller}/{action}/{id}",
            new { action = "Index", id = UrlParameter.Optional }
        );
            context.MapRoute(
               "RiskAudit_LoanCol",
               "RiskAudit/LoanCol/{controller}/{action}/{id}",
               new { action = "Index", id = UrlParameter.Optional }
           );

            context.MapRoute(
                "RiskAudit_Loan",
                "RiskAudit/Loan/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "RiskAudit_AuditCon",
                "RiskAudit/AuditCon/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "RiskAudit_OutSee",
                "RiskAudit/OutSee/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "RiskAudit_Default",
                "RiskAudit/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
